package com.shuma.shopmanage.usermoudle.controller;

import com.shuma.shopmanage.common.result.Result;

import com.shuma.shopmanage.model.user.dto.UserDto;
import com.shuma.shopmanage.usermoudle.service.USerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/login")
@Api(value = "用户登录",tags = "用户登录")
public class LoginController {
    @Autowired
    private USerService uSerService;


    @PostMapping("/login_user")
    @ApiOperation("用户登录")
    public Result login(@RequestBody UserDto dto){

        return uSerService.login(dto);
    }


}